//
//  ViewController.swift
//  Text
//
//  Created by 常超群的MacBookPro on 2022/2/14.
//

import UIKit
import CCQToolBox
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        print(CCQScreenWidth)
        
        
        let dada = ["1", "1", "1", "1", "1", "1", "1"]
        let jio = dada.ccq_chunked(by: 3)
        print(jio)
        let button = UIButton(type: .custom)
        button.frame = CGRect(x: 100, y: 100, width: 100, height: 100)
        button.backgroundColor = .red
        self.view.addSubview(button)
        
        button.ccq_addTarget { [weak self] sender in
            guard let self = self else {
                return
            }
            CCQTools.showToast("你好")
            CCQSystemAlertView.showSystemAlertViewWith(title: "打打", message: "打打", contentArray: ["你好"], controller: self) { index in
                print("sssad")
            }
        }
        
        
    }


}

